<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/admin../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="/admin../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
                <form class="layui-form layui-form-pane" action="/admin/user" method="post">
                    @csrf
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">用户姓名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="key" autocomplete="off" class="layui-input" value="{{$key}}">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                        </div>
                    </div>
                </form>
            </div>
        </fieldset>
        <table class="layui-table" style="text-align: center;padding-top:100px;">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
            </colgroup>

            <thead>
            <tr>
                <th style="text-align: center">id</th>
                <th style="text-align: center">用户名</th>
                <th style="text-align: center">账号</th>
                <th style="text-align: center">性别</th>
                <th style="text-align: center">电话号码</th>
                <th style="text-align: center">邮箱</th>
                <th style="text-align: center">头像</th>
                <th style="text-align: center">真实姓名</th>
                <th style="text-align: center">城市</th>
                <th style="text-align: center">用户状态</th>
                <th style="text-align: center">操作</th>
            </tr>
            </thead>
            <tbody>

                <?php foreach($row as $v){?>
                <form method="post" action="/admin/user_xiugai/id/{{$v -> id}}">
                <tr>
                    <td>{{$v -> id}}</td>
                    <td>{{$v -> user_name}}</td>
                    <td>{{$v -> user_account}}</td>
                    <td>{{$v -> user_sex}}</td>
                    <td>{{$v -> user_tel}}</td>
                    <td>{{$v -> user_email}}</td>
                    <td><img src="/{{$v -> user_header}}"></td>
                    <td>{{$v -> user_truename}}</td>
                    <td>{{$v -> user_city}}</td>
                    <td>{{$v -> user_status}}</td>
                    <td><input type="submit" value="用户详情" class="layui-btn layui-btn-warm"><a href="/admin/user_del/id/{{$v -> id}}" class="layui-btn layui-btn-danger shanchu">冻结</a><a href="/admin/user_undel/id/{{$v -> id}}" class="layui-btn layui-btn-danger shanchu">解冻</a></form></td>
                </tr>
                <?php }?>
            </tbody>
            </tbody>
        </table>
        <div align="center">
        <buttom >顶页</buttom>
        <buttom>上一页</buttom>
        <buttom>下一页</buttom>
        <buttom>最后一页</buttom>
            <buttom>总页数</buttom>
        </div>
    </div>
</div>
<script src="/admin../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script>

</script>

</body>
</html>
